<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
</style>
<link rel="stylesheet" href="/static/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form">

        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" id="title" name="title" class="layui-input" lay-reqtext="请输入名称" placeholder="请输入名称" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">起止有效日期</label>
            <div class="layui-input-inline">
                <input type="text" data-date="" data-date-type="date" class="layui-input" id="vaild_start_at" name="vaild_start_at" placeholder="yyyy-MM-dd" value="">
            </div>
            <div class="layui-input-inline">
                <input type="text" data-date="" data-date-type="date" class="layui-input" id="vaild_end_at" name="vaild_end_at" placeholder="yyyy-MM-dd" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">汽车类型</label>
            <div class="layui-input-block">
                <!-- <select id="car_type" name="car_type" lay-verify="required" lay-reqtext="请选择汽车类型">
                    <option value="">请选择</option>
                    <option value="0">客车</option>
                    <option value="1">货车</option>
                    <option value="2">特种车</option>
                </select> -->
                <select id="car_type" name="car_type" lay-filter="car_type" lay-verify="required" data-select="{:url('insurance.policy/getCarTypeList')}" data-fields="id,title" data-value="">
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">是否过户</label>
            <div class="layui-input-block">
                <select id="is_transfer_owner" name="is_transfer_owner" lay-verify="required" lay-reqtext="请选择是否过户">
                    <option value="">请选择</option>
                    <option value="0">非过户</option>
                    <option value="1">过户</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">险种</label>
            <div class="layui-input-block">
                <select id="section_id" name="section_id" lay-verify="required" lay-reqtext="请选择险种" data-select="{:url('insurance.section/index')}" data-fields="id,title" data-value="">
                </select>
            </div>
        </div>
        <!-- <div class="layui-form-item">
            <label class="layui-form-label">维度</label>
            <div class="layui-input-block">
                <input type="text" id="dimension" name="dimension" class="layui-input" lay-reqtext="请输入维度" placeholder="请输入维度" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">折扣</label>
            <div class="layui-input-block">
                <input type="text" id="discount" name="discount" class="layui-input" lay-reqtext="请输入折扣" placeholder="请输入折扣" value="">
            </div>
        </div> -->

        <div class="layui-form-item">
            <label class="layui-form-label">税后加ME(%)</label>
            <div class="layui-input-block">
                <input type="number" id="tax_after_me" name="tax_after_me" class="layui-input" lay-reqtext="请输入税后加ME" placeholder="请输入税后加ME" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">交强税后(%)</label>
            <div class="layui-input-block">
                <input type="number" id="tax_after_jq" name="tax_after_jq" class="layui-input" lay-reqtext="请输入交强税后" placeholder="请输入交强税后" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">商业税后(%)</label>
            <div class="layui-input-block">
                <input type="number" id="tax_after_sy" name="tax_after_sy" class="layui-input" lay-reqtext="请输入商业税后" placeholder="请输入商业税后" value="">
            </div>
        </div>

        
        <div class="layui-form-item">
            <label class="layui-form-label">减点数税</label>
            <div class="layui-input-block">
                <input type="checkbox" name="red_point_keys" value="tax_after_jq" title="交强税">
                <input type="checkbox" name="red_point_keys" value="tax_after_sy" title="商业税">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">规则</label>
            <div class="layui-input-block">
                <div id="qe_rule" class="xm-select-demo"></div>
                {volist name='qe_rule' id='vo'}
                <input type="checkbox" name="qe_rule_ids[]" value="{$key}" title="{$vo}">
                {/volist}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">车慧达评分</label>
            <div class="layui-input-block" id="item1">

            </div>
            <div class="layui-input-block" style="clear: both;">
                <button type="button" lay-active="add_item1" class="layui-btn layui-btn-normal layui-btn-sm">添加</button>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">方案/备注</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea" placeholder="请输入方案/备注"></textarea>
            </div>
        </div>

        <!-- <div class="layui-form-item">
            <label class="layui-form-label">上架时间</label>
            <div class="layui-input-block">
                <input type="text" name="up_date" data-date="" data-date-type="datetime" class="layui-input"  placeholder="请选择上架时间" value="">
            </div>
        </div>> -->
        

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>

<template id="item_tpl1">
    <div class="item layui-input-block" style="margin-bottom: 5px; margin-left: 0;clear: both;">
        <div class="layui-input-inline">
            <input type="text" id="" name="rating[auto_coefficient_min][]" lay-verify="required" class="layui-input" lay-reqtext="请输入最小系数" placeholder="请输入最小系数" value="">
        </div>
        <div class="layui-input-inline">
            <input type="text" id="" name="rating[auto_coefficient_max][]" lay-verify="required" class="layui-input" lay-reqtext="请输入最大系数" placeholder="请输入最大系数" value="">
        </div>
        <div class="layui-input-inline">
            <input type="text" id="" name="rating[min][]" lay-verify="required" class="layui-input" lay-reqtext="请输入最小评分" placeholder="请输入最小评分" value="">
        </div>
        <div class="layui-input-inline">
            <input type="text" id="" name="rating[max][]" class="layui-input" lay-reqtext="请输入最大评分" placeholder="请输入最大评分" value="">
        </div>
        <div class="layui-input-inline">
            <select id="" name="rating[is_renewal][]" lay-reqtext="请选择是否续保">
                <option value="">请选择是否续保</option>
                <option value="0">否</option>
                <option value="1">是</option>
            </select>
        </div>
        <div class="layui-input-inline">
            <select id="" name="rating[type][]" lay-reqtext="请选择保单类型" value="">
                <option value="">请选择保单类型</option>
                <option value="0">交强</option>
                <option value="1">商业</option>
            </select>
        </div>
        <div class="layui-input-inline">
            <input type="text" id="" name="rating[after_tax][]" class="layui-input" lay-reqtext="请输入税后" placeholder="请输入税后" value="">
        </div>
        <div class="layui-input-inline">
            <button type="button" class="layui-btn layui-btn-danger layui-btn-sm " lay-active="delete_item1" style="height: 38px;">删除</button>
        </div>
    </div>
</template>
<script>
    var qeruleSelects=JSON.parse('{$qe_rule|json_encode=256|raw}')
    window.qeruleSelects = qeruleSelects
</script>